<script setup lang="ts">
import {
  onShow,
  onHide,
  onInit,
  onLoad,
  onReady,
  onUnload,
} from "@dcloudio/uni-app";
onInit((res) => {
  console.log("App init--监听页面初始化", res);
});
onLoad(() => {
  console.log("App loaded----监听页面加载");
});
onShow(() => {
  console.log("App Show----监听页面显示");
});

onReady(() => {
  console.log("App Ready------监听页面初此渲染完成");
});
onHide(() => {
  console.log("App Hide----监听页面隐藏");
});
onUnload(() => {
  console.log("App Unload----监听页面卸载");
});

onHide(() => {
  console.log("App Hide");
});
</script>
<style lang="scss" scoped>
.ellipsis {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.multi-line-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}
</style>
